{
	"info": {
		"_postman_id": "8148427a-40a2-42be-a5fa-660b5f742a55",
		"name": "Weather-history",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "15443561"
	},
	"item": [
		{
			"name": "Registration",
			"item": [
				{
					"name": "Post",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"Email\": \"mail2@gmail.com\",\r\n    \"LastName\": \"last\",\r\n    \"Password\": \"password123\",\r\n    \"FirstName\": \"first\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/registration",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"registration"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Accounts",
			"item": [
				{
					"name": "Get one",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/accounts/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"accounts",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Search",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/accounts/search?FirstName&LastName&Email&From=0&Size=10",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"accounts",
								"search"
							],
							"query": [
								{
									"key": "FirstName",
									"value": null
								},
								{
									"key": "LastName",
									"value": null
								},
								{
									"key": "Email",
									"value": null
								},
								{
									"key": "From",
									"value": "0"
								},
								{
									"key": "Size",
									"value": "10"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"firstName\": \"string\",\r\n  \"lastName\": \"string\",\r\n  \"email\": \"user@example.com\",\r\n  \"password\": \"string\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/accounts/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"accounts",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/accounts/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"accounts",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								""
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Region types",
			"item": [
				{
					"name": "Get one",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/types/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"types",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Search",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/types/search?from=0&to=100",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"types",
								"search"
							],
							"query": [
								{
									"key": "from",
									"value": "0"
								},
								{
									"key": "to",
									"value": "100"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"type\": \"string\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region/types/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"types",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/types/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"types",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"type\": \"string\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region/types",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"types"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Login",
			"item": [
				{
					"name": "Post",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"email\": \"string\",\r\n  \"password\": \"string\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/login",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"login"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Regions",
			"item": [
				{
					"name": "Get one",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Search",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/search?from=0&to=100",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"search"
							],
							"query": [
								{
									"key": "from",
									"value": "0"
								},
								{
									"key": "to",
									"value": "100"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"name\": \"string\",\r\n  \"latitude\": 0,\r\n  \"longitude\": 0,\r\n  \"parentRegion\": \"string\",\r\n  \"regionType\": 0\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"parentRegion\": \"string\",\r\n  \"name\": \"string\",\r\n  \"latitude\": 0,\r\n  \"longitude\": 0,\r\n  \"regionType\": 0\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region"
							]
						}
					},
					"response": []
				},
				{
					"name": "Attach weather",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/1/weather/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"1",
								"weather",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Detatch weather",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/1/weather/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"1",
								"weather",
								"1"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Weathers",
			"item": [
				{
					"name": "Get one",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Search",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/search?From=0&Size=10",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"search"
							],
							"query": [
								{
									"key": "StartDateTime",
									"value": "2024-05-24T14:40:00.478Z",
									"disabled": true
								},
								{
									"key": "EndDateTime",
									"value": "2024-05-24T14:40:00.478Z",
									"disabled": true
								},
								{
									"key": "RegionId",
									"value": "1",
									"disabled": true
								},
								{
									"key": "From",
									"value": "0"
								},
								{
									"key": "Size",
									"value": "10"
								},
								{
									"key": "WeatherCondition",
									"value": "RAIN",
									"disabled": true
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"regionId\": 0,\r\n  \"regionName\": \"string\",\r\n  \"windSpeed\": 0,\r\n  \"weatherCondition\": \"string\",\r\n  \"precipitationAmount\": 0,\r\n  \"measurementDateTime\": \"2024-05-24T14:38:39.660Z\",\r\n  \"temperature\": 0,\r\n  \"humidity\": 0,\r\n  \"weatherForecast\": [\r\n    0\r\n  ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"regionId\": 0,\r\n  \"temperature\": 0,\r\n  \"humidity\": 0,\r\n  \"windSpeed\": 0,\r\n  \"precipitationAmount\": 0,\r\n  \"weatherCondition\": \"string\",\r\n  \"measurementDateTime\": \"2024-05-24T14:37:19.100Z\",\r\n  \"weatherForecast\": [\r\n    0\r\n  ]\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Forecast",
			"item": [
				{
					"name": "Get one",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/forecast/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"forecast",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Update",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"weatherCondition\": \"string\",\r\n  \"temperature\": 0,\r\n  \"dateTime\": \"2024-05-24T14:41:25.547Z\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/forecast/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"forecast",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/forecast/1",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"forecast",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Create",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n  \"temperature\": 0,\r\n  \"regionId\": 0,\r\n  \"dateTime\": \"2024-05-24T14:41:17.479Z\",\r\n  \"weatherCondition\": \"string\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{ip}}:{{port}}/region/weather/forecast",
							"host": [
								"{{ip}}"
							],
							"port": "{{port}}",
							"path": [
								"region",
								"weather",
								"forecast"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "UI",
			"item": [
				{
					"name": "Домашняя страница",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{ui_ip}}:{{ui_port}}/auth/login",
							"host": [
								"{{ui_ip}}"
							],
							"port": "{{ui_port}}",
							"path": [
								"auth",
								"login"
							]
						}
					},
					"response": []
				}
			],
			"description": "Тут всё навалом, что есть на интерфейсе"
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "{{session_cookie}}",
				"type": "string"
			},
			{
				"key": "key",
				"value": "Cookie",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "session_cookie",
			"value": "id=1",
			"type": "string"
		},
		{
			"key": "ip",
			"value": "http://localhost",
			"type": "string"
		},
		{
			"key": "port",
			"value": "5173",
			"type": "string"
		},
		{
			"key": "ui_ip",
			"value": "http://localhost",
			"type": "string"
		},
		{
			"key": "ui_port",
			"value": "5553",
			"type": "string"
		}
	]
}